
import { _decorator, Component, Node, Label } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('GameView')
export class GameView extends Component {

    @property(Label)
    score: Label = null!;

    static instance: GameView;

    onLoad() {
        GameView.instance = this;
    }

    eatFish(score: number) {
        this.score.string = score.toString()
    }
}

